.HelpButton,
.HelpContent {
  transition:
    opacity 150ms linear,
    transform 300ms ease-out;
  z-index: 100;
  opacity: 0.5;

  &:hover,
  &:focus {
    opacity: 1;
  }
}

.HelpButton {
  transform: translateX(0);
  color: white;
  border: 1px solid white;
  border-radius: 0px;
  background: black;
  padding: 0.5rem 1rem;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;

  &.open {
    transform: translateX(-30vw);
  }
}

.HelpContent {
  display: block;
  background: var(--background);
  color: var(--text-default);
  border: 1px solid var(--text-default);
  top: 0px;
  height: 100vh;
  width: 30vw;
  right: 0;
  left: 70vw;
  padding: 0 1rem;
  transform: translateX(100%);
  text-align: start;

  &:popover-open {
    transform: translateX(0);
  }

  & button {
    background: white;
    border: 0;
    border-radius: 0 0 0 50%;
    padding: 0.5rem 1rem;
  }

  & details:not(:last-child) {
    border-bottom: 1px solid var(--text-default);
  }

  & summary {
    font-size: 1.2rem;
  }

  & p {
    font-size: 1.1rem;
  }

  & summary + p {
    margin-top: 0;
  }
}
